package com.button.boot.webservice.service.impl;

import javax.jws.WebService;

import org.springframework.stereotype.Component;

import com.button.boot.webservice.model.UserModel;
import com.button.boot.webservice.service.UserService;

@WebService(serviceName="UserService",//对外发布的服务名
             targetNamespace="http://service.webservice.boot.button.com",//指定你想要的名称空间，通常使用使用包名反转
             endpointInterface="com.button.boot.webservice.service.UserService")//服务接口全路径, 指定做SEI（Service EndPoint Interface）服务端点接口
@Component
public class UserServiceImpl implements UserService {

	@Override
	public UserModel getUser(String userId) {
		UserModel user = new UserModel();
		user.setName("button");
		user.setAge(25);
		user.setSex("男");
		return null;
	}

	@Override
	public String getUserName(String userId) {
		return "Button";
	}

}
